package com.yc.cloud.cloudindex;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
/**
 * 自动读取配置项目
 * prefix 配置所在配置节点
 * data:
 *   upload: xxx
 */
@ConfigurationProperties(prefix = "data")
@Data
public class RunProperties {
    //文件上传路径
    private String upload;

    //开始时间
    private String beginTime;
}
